Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@commitlint/resolve-extends
Advanced tools
@commitlint/resolve-extends is a utility package used to resolve and load shareable configurations for commitlint. Commitlint is a tool that helps enforce consistent commit message conventions. This package helps in resolving the 'extends' key in commitlint configuration files, allowing users to extend from predefined or custom configurations.
Resolve Shareable Configurations
This feature allows you to resolve and load shareable configurations specified in the 'extends' key of your commitlint configuration file. The code sample demonstrates how to resolve the '@commitlint/config-conventional' configuration.
const resolveExtends = require('@commitlint/resolve-extends');
async function resolveConfig() {
const config = await resolveExtends(['@commitlint/config-conventional']);
console.log(config);
}
resolveConfig();
Custom Configuration Resolution
This feature allows you to resolve custom configurations by specifying the path to the custom configuration file. The code sample demonstrates how to resolve a custom configuration located at './path/to/custom-config'.
const resolveExtends = require('@commitlint/resolve-extends');
async function resolveCustomConfig() {
const config = await resolveExtends(['./path/to/custom-config']);
console.log(config);
}
resolveCustomConfig();
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. It can be extended with shareable configurations similar to commitlint. ESLint's 'extends' key allows users to extend from predefined or custom configurations, making it comparable to @commitlint/resolve-extends.
Stylelint is a linter for CSS and other style sheet languages. It also supports shareable configurations through the 'extends' key in its configuration file. This makes it similar to @commitlint/resolve-extends in terms of resolving and loading shareable configurations.
Babel is a JavaScript compiler that allows you to use next-generation JavaScript, today. Babel configurations can be extended using the 'extends' key, similar to how commitlint configurations can be extended. This makes Babel's configuration resolution mechanism comparable to @commitlint/resolve-extends.
13.0.0 (2021-05-24)
add subject-exclamation-mark rule to improve error messages (#2593) (be701bd)
chore!: remove node 10 support (#2596) (4db4ba1), closes #2596
FAQs
Lint your commit messages
The npm package @commitlint/resolve-extends receives a total of 2,941,100 weekly downloads. As such, @commitlint/resolve-extends popularity was classified as popular.
We found that @commitlint/resolve-extends demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.